﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PowerSourceEditor : UnitEditor
{
    public PowerSource PS
    {
        get { return PB.PS; }
        set { PB.PS = value; }
    }

    public PowerSourceBehaviour PB
    {
        get { return PB as PowerSourceBehaviour; }
        set { PB = value; }
    }

    protected override void Update()
    {
        var rt = GetComponent<RectTransform>();
        var s = EMgr.View2WorldScale;
        rt.sizeDelta = new Vector2(20, 20);
        base.Update();
    }
}
